package email;

import java.util.Random;

/**
 * 方法类，获取验证码
 * @author bo
 *
 */
public class GetValidCode {
	public static String getValidCode() {
		Random r = new Random();
		String validCode = new String();
		for (int i = 0; i < 10; ++i) {
			validCode += Math.abs(r.nextInt() % 10);
		}
		return validCode;
	}
}
